package com.hzw.saas.service.rss.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hzw.saas.service.rss.model.Library;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 期刊摘要
 Mapper 接口
 * </p>
 *
 * @author sonam
 * @since 2021-06-30
 */
@Mapper
public interface LibraryMapper extends BaseMapper<Library> {

    @Delete("<script>delete from tb_library where article_id = #{articleId} and creator_id= #{userId}</script>")
    void removeByArticleId(@Param("articleId") String articleId, @Param("userId") String userId);
}
